package com.xnyzc.lhy.mis.entity.worksheet;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
*
* 
*
* @author cuixiaojian
* @since 2021-12-27
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OaCWorkOrder对象", description="工单表")
public class OaCWorkOrder implements Serializable {

private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "工单Id")
    @TableId(value="work_order_id", type = IdType.INPUT)
    private Long workOrderId;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @ApiModelProperty(value = "订单时间")
    private Date orderTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(exist = false)
    private String orderTimeStr;

    @ApiModelProperty(value = "供应商Id")
    private Long officeId;

    @ApiModelProperty(value = "供应商名")
    private String officeName;

    @ApiModelProperty(value = "司机姓名")
    private String driverName;

    @ApiModelProperty(value = "车牌号")
    private String vehNo;

    @ApiModelProperty(value = "工单金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "工单原因")
    private String reason;

    @ApiModelProperty(value = "工单状态(0:执行;1：撤销)")
    private Integer status;

    @ApiModelProperty(value = "工单状态")
    @TableField(exist = false)
    private String statusStr;

    @ApiModelProperty(value = "是否删除(0:未删除;1：删除)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建人姓名")
    private String creatorName;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(exist = false)
    private String createTimeStr;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "司机ID")
    private Long driverId;


    public static final String WORK_ORDER_ID = "work_order_id";

    public static final String ORDER_NO = "order_no";

    public static final String OFFICE_ID = "office_id";

    public static final String OFFICE_NAME = "office_name";

    public static final String DRIVER_NAME = "driver_name";

    public static final String VEH_NO = "veh_no";

    public static final String AMOUNT = "amount";

    public static final String REASON = "reason";

    public static final String STATUS = "status";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String UPDATE_USER = "update_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String CREATOR_NAME = "creator_name";

    public static final String DRIVER_ID = "driver_id";

}
